package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.OrganizationsCreateByThirdPartyUserIdParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.response.OrganizationsCreateByThirdPartyUserIdResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/09/29 20:49
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class OrganizationsCreateByThirdPartyUserIdRequest extends AbstractESignRequest implements
    ESignRequest<OrganizationsCreateByThirdPartyUserIdResponse> {

  private OrganizationsCreateByThirdPartyUserIdParamBody organizationsCreateByThirdPartyUserIdParamBody;

  public OrganizationsCreateByThirdPartyUserIdRequest(
      OrganizationsCreateByThirdPartyUserIdParamBody organizationsCreateByThirdPartyUserIdParamBody) {
    this.organizationsCreateByThirdPartyUserIdParamBody = organizationsCreateByThirdPartyUserIdParamBody;
    this.setParamBody(organizationsCreateByThirdPartyUserIdParamBody);
  }

  @Override
  public String getUrl() {
    return "/organizations/createByThirdPartyUserId";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }

  @Override
  public Class<OrganizationsCreateByThirdPartyUserIdResponse> getResponseClass() {
    return OrganizationsCreateByThirdPartyUserIdResponse.class;
  }

}
